public class T1 {
    class MyArray<T>{
        public Object []array=new Object[10];
        public void setArray(int pos,T val){
            array[pos]=val;
        }
        public T get(int pos){
            return (T)array[pos];

        }


}
    public static void main(String[] args) {

    }
}